import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
      home: Scaffold(
    appBar: AppBar(
      title: const Text("你好flutter"),
    ),
    body: const MyApp(),
  )));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(
        alignment: Alignment.center,
        width: 200,
        height: 200,
        decoration: BoxDecoration(
          color: Colors.yellow,
          gradient: const LinearGradient(colors: [Colors.red, Colors.orange]),
          boxShadow: const [
            BoxShadow(
              color: Colors.blue,
              offset: Offset(2.0, 2.0),
              blurRadius: 10.0,
            ),
          ],
          border: Border.all(
            color: Colors.black,
            width: 1,
          ),
        ),
        transform: Matrix4.rotationZ(4),
        child: const Text(
          "你好",
          style: TextStyle(fontSize: 20),
        ),
      ),
    );
  }
}
